Skip to content

Port place markers updates#314

Merged
Enkidu93 merged 3 commits intomasterfrom
place_markers_updates
Jul 2, 2025
Merged

Port place markers updates#314
Enkidu93 merged 3 commits intomasterfrom
place_markers_updates

Conversation

@Enkidu93
Copy link
Copy Markdown
Collaborator

@Enkidu93 Enkidu93 commented Jun 26, 2025

This change is Reviewable

@Enkidu93 Enkidu93 requested a review from ddaspit June 26, 2025 18:14
Copy link
Copy Markdown
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Enkidu93)


src/SIL.Machine/Corpora/PlaceMarkersUsfmUpdateBlockHandler.cs line 181 at r1 (raw file):

                    adjacentSourceToken > 0
                    && element.Type == UsfmUpdateBlockElementType.Style
                    && element.Tokens[0].Marker.Last() == '*'

Last is not optimized for strings. It will iterate through all characters in the string.

Copy link
Copy Markdown
Collaborator Author

@Enkidu93 Enkidu93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @ddaspit)


src/SIL.Machine/Corpora/PlaceMarkersUsfmUpdateBlockHandler.cs line 181 at r1 (raw file):

Previously, ddaspit (Damien Daspit) wrote…

Last is not optimized for strings. It will iterate through all characters in the string.

Good catch. Done. Wish I could use range operators 🤪

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 1, 2025

Codecov Report

❌ Patch coverage is 80.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.79%. Comparing base (90dcee6) to head (54e8f82).
⚠️ Report is 60 commits behind head on master.

Files with missing lines Patch % Lines
...hine/Corpora/PlaceMarkersUsfmUpdateBlockHandler.cs 76.47% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #314      +/-   ##
==========================================
- Coverage   70.83%   70.79%   -0.04%     
==========================================
  Files         390      390              
  Lines       32729    32715      -14     
  Branches     4609     4604       -5     
==========================================
- Hits        23182    23162      -20     
- Misses       8483     8489       +6     
  Partials     1064     1064              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Enkidu93)

@Enkidu93 Enkidu93 merged commit 4dac237 into master Jul 2, 2025
4 checks passed
@Enkidu93 Enkidu93 deleted the place_markers_updates branch July 2, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants